-- GENERATED SPELL FOR [Syth Arcane Elemental] --


function spell0_19205(pUnit, Event) --@Arcane Buffet,n/a--
pUnit:FullCastSpellOnTarget(33527,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19205', 22200, 1)
end

function spell1_19205(pUnit, Event) --@Arcane Buffet,n/a--
pUnit:FullCastSpellOnTarget(38138,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19205', 22200, 1)
end

function Sorts_19205(pUnit, Event)
local choix_sorts_19205 = math.random(0, 1)
if choix_sorts_19205 == 0 then
pUnit:RegisterEvent('spell0_19205', 1, 1)
end
if choix_sorts_19205 == 1 then
pUnit:RegisterEvent('spell1_19205', 1, 1)
end
end

function mob19205_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19205', math.random(1500, 3000), 1)
end

function mob19205_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19205_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19205_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19205, 1, 'mob19205_Action')
RegisterUnitEvent(19205, 2, 'mob19205_Leave')
RegisterUnitEvent(19205, 3, 'mob19205_Kill')
RegisterUnitEvent(19205, 4, 'mob19205_Die')
